/* admin_messages.css */
.admin-messages-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.admin-messages-container h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    position: relative;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #3498db;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #3498db;
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.message-card, .reply-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.reply-card {
    border-left-color: #2ecc71;
}

.message-header, .reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.username {
    font-weight: 600;
    color: #2c3e50;
}

.date {
    color: #7f8c8d;
    font-size: 0.85em;
}

.reply-to {
    font-size: 0.85em;
    color: #7f8c8d;
    width: 100%;
    margin-top: 5px;
}

.message-content, .reply-content {
    line-height: 1.6;
    color: #34495e;
    padding: 10px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 10px 0;
}

.message-actions, .reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-approve, .btn-reject, .btn-view {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.btn-approve {
    background: #2ecc71;
    color: white;
}

.btn-approve:hover {
    background: #27ae60;
}

.btn-reject {
    background: #e74c3c;
    color: white;
}

.btn-reject:hover {
    background: #c0392b;
}

.btn-view {
    background: #3498db;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view:hover {
    background: #2980b9;
}

.no-items {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-size: 1.1em;
}

.flash-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    transition: opacity 0.3s;
}

.flash-message.success {
    background: #2ecc71;
}

.flash-message.error {
    background: #e74c3c;
}

.flash-message.fade-out {
    opacity: 0;
}